package com.gbiac.modules.monitor.controller;

import com.gbiac.modules.monitor.model.query.AttendanceStatisticsQuery;
import com.gbiac.modules.monitor.model.vo.AttendanceStatisticsVO;
import com.gbiac.modules.monitor.service.AttendanceStatisticsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.config.shiro.IgnoreAuth;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 考勤统计分析
 */
@Api(tags="考勤统计分析")
@RestController
@RequestMapping("/attendanceStatistics")
@Slf4j
public class AttendanceStatisticsController {
    @Resource
    private AttendanceStatisticsService attendanceStatisticsService;

    @IgnoreAuth
    @ApiOperation(value="查询统计", notes="查询统计")
    @GetMapping(value = "/query")
    public Result<AttendanceStatisticsVO> query(AttendanceStatisticsQuery violationTypeStatisticsQuery) {
        return Result.OK(attendanceStatisticsService.query(violationTypeStatisticsQuery));
    }
}
